import React from 'react'
import '../views/Order/Order.less'
import {withRouter} from 'react-router-dom'
class OrderShop extends React.Component {
    GoRte(){
        this.props.history.push(`/AfterSale/${this.props.data.id}/2`)
    }
    render() {
        return (
            <div>
                <div className='OrderTit-d4'>
                    <img className='OrderTit-d4-i1' src={this.props.data.picUrl} alt="" />
                    <div className='OrderTit-d5'>
                        <p>{this.props.data.goodsCommonName}</p>
                        <p>{this.props.data.specInfo}</p>
                    </div>
                    <div className='OrderTit-d6'>
                        <p>¥{this.props.data.price}</p>
                        <p>x{this.props.data.num}</p>
                        {this.props.ID&&this.props.status===2?<p className='center' onClick={this.GoRte.bind(this)}>申请退货</p>:''}
                    </div>
                </div>
            </div>
        )
    }
}

export default withRouter(OrderShop)